package com.amumu.drama.common.modules.order.dto.resp;

import cn.hutool.json.JSONObject;
import com.amumu.drama.common.modules.category.vo.GameVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author sunzhuang
 * @date 2024/5/15 22:03
 * @slogan 天下风云出我辈, 一入代码岁月催
 * @desc
 */
@Data
@ApiModel("我的订单列表")
public class MemberOrderListResp implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "订单id")
    private Long id;

    @ApiModelProperty(value = "用户ID")
    private Long memberId;

    @ApiModelProperty(value = "昵称")
    private String memberNickname;

    @ApiModelProperty(value = "订单编号")
    private String orderSn;

    @ApiModelProperty(value = "提交时间")
    private Date createTime;

    @ApiModelProperty(value = "用户帐号")
    private String memberUsername;

    @ApiModelProperty(value = "订单总金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "应付金额（实际支付金额）")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "积分抵扣金额")
    private BigDecimal integrationAmount;

    @ApiModelProperty(value = "支付方式：0->未支付；1->支付宝；2->微信")
    private Integer payType;

    @ApiModelProperty(value = "订单来源：0->PC订单；1->app订单")
    private Integer sourceType;

    @ApiModelProperty(value = "订单状态：0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单")
    private Integer status;

    @ApiModelProperty(value = "支付状态：0->未支付；1-支付中；2->已支付；3->支付失败")
    private Integer payStatus;

    @ApiModelProperty("第三方支付流水号")
    private String payOrderSn;

    @ApiModelProperty("支付备注")
    private String payRemark;

    @ApiModelProperty(value = "订单类型：0->福禄充值；1->人工充值;")
    private Integer orderType;

    @ApiModelProperty("邀请码")
    private String invitationCode;

    @ApiModelProperty(value = "邀请折扣")
    private BigDecimal invitationDiscount;

    @ApiModelProperty(value = "邀请优惠金额")
    private BigDecimal invitationDiscountAmount;

    @ApiModelProperty("游戏帐号信息")
    private String feature;

    @ApiModelProperty(value = "确认收货状态：0->未确认；1->已确认")
    private Integer confirmStatus;

    @ApiModelProperty(value = "删除状态：0->未删除；1->已删除")
    private Integer deleteStatus;

    @ApiModelProperty(value = "下单时使用的积分")
    private BigDecimal useIntegration;

    @ApiModelProperty(value = "支付时间")
    private String paymentTime;

    @ApiModelProperty(value = "支付确认时间")
    private String paymentConfirmTime;

    @ApiModelProperty(value = "剩余支付时间(毫秒)")
    private Long payRemainingMilliseconds;

    @ApiModelProperty("退款时间")
    private String refundTime;

    @ApiModelProperty("退款确认时间")
    private String refundConfirmTime;

    @ApiModelProperty("发货时间")
    private String deliveryTime;

    @ApiModelProperty("确认收货时间")
    private String receiveTime;

    @ApiModelProperty(value = "修改时间")
    private String modifyTime;

    @ApiModelProperty("订单商品列表")
    private List<OmsOrderItemResp> orderItemList;

    @ApiModelProperty("商品信息")
    private GameVo gameVo;

    @ApiModelProperty("游戏模板定义")
    private JSONObject customTemplateField;
}
